package com.topboya.linker;

import android.app.Application;
import android.content.Context;
import android.os.StrictMode;

public class LinkerApplication extends Application {
    private static Context mContext;//上下文
//    登录成功获取token，用于其他接口验证请求头


    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();
        // android 7.0系统解决拍照的问题
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());
        builder.detectFileUriExposure();
    }
    public static Context getContext() {
        return mContext;
    }

}
